package dao;

import org.springframework.lang.NonNull;

import bean.User;

public interface UserDAO {
    boolean save(@NonNull User user);

    int find(@NonNull User user);

    boolean find(String userName);

    boolean update(int userId, @NonNull String newPassword);

    boolean delete(int userId);
}
